<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <script src="/js/ajax.js"></script>
    <script>
        ajax({
            url:'http://localhost:3001/test',
            type:'get',
            success:function(result){   
                console.log(result);

            }
        })
    </script>
</body>
</html>